- @html_title ||= "operation_logs列表"
= html_buttons do
  = link_to '新增 Operation log', new_operation_log_path, class: 'btn btn-xs btn-primary'

/! 搜索表单
.search_form
  - @search||= OperationLog.ransack {}
  = search_form_for(@search, builder: SimpleForm::FormBuilder, class: "index_search_form") do |f|
    = hidden_field_tag :per_page, per_page
    = search_button f
/! 数据列表
table.index-data-table
  thead
    tr
      th Project
      th Created by
      th Results
      th Success
      th Command text
      th 操作
  tbody
    - @operation_logs.each do |operation_log|
      tr
        td = operation_log.project_id
        td = operation_log.created_by
        td = operation_log.results
        td = operation_log.success
        td = operation_log.command_text
        td
          = link_to '查看',  operation_log, class: 'btn btn-info btn-xs'
          = link_to '编辑', edit_operation_log_path(operation_log), class: 'btn btn-primary btn-xs push-5-l'
          = link_to '删除', operation_log, data: { confirm: '确定删除吗?' }, method: :delete, class: 'btn btn-danger  btn-xs push-5-l'
= paginator_bottom @operation_logs if @operation_logs.respond_to?(:total_pages)